package com.xuanyuanxinyu.compose.extension

import android.app.Activity
import android.content.Intent

/**
 * @FileName:
 * @Description:
 * @author ken.luo
 * @date 2023/4/4
 * @version V1.0
 * @email 424533553@qq.com
 */

fun Activity.jumpActivity(cls : Class<*>,closeSelf : Boolean = false) {
    startActivity(Intent(this,cls))
    if (closeSelf) {
        this.finish()
    }
}
